package com.jiyun.controller;


import com.cn.jiyun.entity.pojo.Strategy;
import com.jiyun.result.Result;
import com.jiyun.service.YouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
@RestController
@RequestMapping("/you")
public class YouController {
    @Autowired
    private YouService youService;

    @RequestMapping("/findAll")
    public Result<List<Strategy>> findAll() {
        return Result.ok(youService.findAll());
    }

    @RequestMapping("/findid")
    public Result<Strategy> findid(Integer strategyId) {
        return Result.ok(youService.findid(strategyId));
    }
}
